﻿namespace TKT.Lifter.CIM.Lifter.HSMSMsg.HSMSConstant
{
    /// <summary>
    /// HSMS消息回复常量值
    /// </summary>
    public class MsgACK
    {
        public enum COMMMACK
        {
            // Establish Command Acknowledge Code
            //
            // 0 = ACK
            // 1 = Denied, Try Again
            // 2-63 = Hold

            ACK,
            Denied_TryAgain,
            Hold
        }
        public enum ONLACK
        {
            //Acknowledge code for ONLINE request
            //
            //0 = ON_LINE REMOTE Confirmed
            //1 = ON_LINE REMOTE Not Allowed
            //2 = Equipment Already ON_LINE REMOTE
            //3-63 = Hold
            OnLineRemoteConfirmed,
            OnLineRemoteNotAllowew,
            EquipmentAlreadyOnLineRemote,
            Hold,
        }
        public enum OFLACK
        {
            //Acknowledge code for OFFLINE request
            //
            //0 = Offline Confirmed
            //1-63 = Hold
            OfflineConfirmed
        }
        public enum HCACK
        {
            //主机命令参数确认代码
            //0=已确认，命令已执行（传输系统不使用此值，使用数字4值进行确认）
            //1=命令不存在
            //2=当前无法执行
            //3=至少有一个参数无效
            //4=已确认，将执行命令，并通过事件通知完成
            //5=已拒绝，已请求
            //6=对象不存在
            //7-63=保持
            NO_ERROR,
            COMMAND_DOES_NOT_EXIST = 1,
            CURENTLY_NOT_ABLE_TO_EXECUTED = 2,
            AT_LEAST_ONE_PARAMETER_ISNT_VALID = 3,
            CONFIRM = 4,
            ALREADY_REQUESTED,
            OBJECT_DOSE_NOT_EXIST,
        }
        public enum CPACK
        {
            // 命令参数确认代码
            // 0=无错误
            // 1=CPNAME不存在
            // 2=在CPVAL中指定了不正确的值
            // 3=在CPVAL中指定了不正确的格式
            // >3=另一个设备错误
            // 4-63=保持
            No_Error,
            CPNAME_Does_Not_Exist,
            CPVALUE_Incorrect_Value,
            CPVALUE_Incorrect_Format,
            Another_Equipment_Error,
            Hold
        }
        public enum CEPACK
        {
            // 命令参数确认代码
            // 0 = 无错误
            // 1 = CPNAME不存在
            // 2 = CEPVAL中指定了不正确的值
            // 3 = CEPVAl中指定了不正确的格式
            // 4 = CPNAME用法无效
            No_Error,
            CPNAME_Does_Not_Exist,
            CPVALUE_Incorrect_Value,
            CPVALUE_Incorrect_Format,
            CPNAME_Not_Valid
        }
        /// <summary>
        /// Time Acknowledge Used(S2F32)
        /// </summary>
        public enum TIACK
        {
            //0 = OK
            //1 = Error, Not OK 
            //2-63 = Hold
            OK,
            Error,
            Hold
        }
    }
}
